﻿#!python -u
import sys
import logging
log_file = 'son.log'
log_level = logging.DEBUG
logging.basicConfig(filename=log_file, level=log_level)
logger = logging.getLogger()
s=sys.stdin.readline()
logger.debug(s)
sys.stdout.write("Hello,Dad.\n")

gtp_commands={
"aa_confirm_safety":print,
"accurate_approxlib":print,
"accuratelib":print,
"advance_random_seed":print,
"all_legal":print,
"all_move_values":print,
"analyze_eyegraph":print,
"analyze_semeai":print,
"analyze_semeai_after_move":print,
"attack":print,
"attack_either":print,
"black":print,
"block_off":print,
"boardsize":print,
"break_in":print,
"captures":print,
"clear_board":print,
"clear_cache":print,
"color":print,
"combination_attack":print,
"combination_defend":print,
"connect":print,
"countlib":print,
"cputime":print,
"decrease_depths":print,
"defend":print,
"defend_both":print,
"disconnect":print,
"does_attack":print,
"does_defend":print,
"does_surround":print,
"dragon_data":print,
"dragon_status":print,
"dragon_stones":print,
"draw_search_area":print,
"dump_stack":print,
"echo":print,
"echo_err":print,
"estimate_score":print,
"eval_eye":print,
"experimental_score":print,
"eye_data":print,
"final_score":print,
"final_status":print,
"final_status_list":print,
"findlib":print,
"finish_sgftrace":print,
"fixed_handicap":print,
"followup_influence":print,
"genmove":print,
"genmove_black":print,
"genmove_white":print,
"get_connection_node_counter":print,
"get_handicap":print,
"get_komi":print,
"get_life_node_counter":print,
"get_owl_node_counter":print,
"get_random_seed":print,
"get_reading_node_counter":print,
"get_trymove_counter":print,
"gg-undo":print,
"gg_genmove":print,
"half_eye_data":print,
"help":print,
"increase_depths":print,
"initial_influence":print,
"invariant_hash_for_moves":print,
"invariant_hash":print,
"is_legal":print,
"is_surrounded":print,
"kgs-genmove_cleanup":print,
"known_command":print,
"komi":print,
"ladder_attack":print,
"last_move":print,
"level":print,
"limit_search":print,
"list_commands":print,
"list_stones":print,
"loadsgf":print,
"move_influence":print,
"move_probabilities":print,
"move_reasons":print,
"move_uncertainty":print,
"move_history":print,
"name":print,
"new_score":print,
"orientation":print,
"owl_attack":print,
"owl_connection_defends":print,
"owl_defend":print,
"owl_does_attack":print,
"owl_does_defend":print,
"owl_substantial":print,
"owl_threaten_attack":print,
"owl_threaten_defense":print,
"place_free_handicap":print,
"play":print,
"popgo":print,
"printsgf":print,
"protocol_version":print,
"query_boardsize":print,
"query_orientation":print,
"quit":print,
"reg_genmove":print,
"report_uncertainty":print,
"reset_connection_node_counter":print,
"reset_life_node_counter":print,
"reset_owl_node_counter":print,
"reset_reading_node_counter":print,
"reset_search_mask":print,
"reset_trymove_counter":print,
"restricted_genmove":print,
"same_dragon":print,
"set_free_handicap":print,
"set_random_seed":print,
"set_search_diamond":print,
"set_search_limit":print,
"showboard":print,
"start_sgftrace":print,
"surround_map":print,
"tactical_analyze_semeai":print,
"test_eyeshape":print,
"time_left":print,
"time_settings":print,
"top_moves":print,
"top_moves_black":print,
"top_moves_white":print,
"tryko":print,
"trymove":print,
"tune_move_ordering":print,
"unconditional_status":print,
"undo":print,
"version":print,
"white":print,
"worm_cutstone":print,
"worm_data":print,
"worm_stones":print,
}


def cmd_to_op(command):
	sys.stdin.write(command)
	
def read_command():
	succeed=False
	resp=""
	while not succeed:
	line = sys.stdout.readline()
	if line[0]=='=':
		succeed=True
		line=line.strip()
		resp=re.sub('^= ?','',line)
	return resp

def cmd_and_resp(command):
		cmd_to_op(command)
		return get_resp()

while True:
	
	